package org.longgang.bean;

import java.io.Serializable;

/**
 * company_info
 * @author 
 */
public class CompanyInfo implements Serializable {
    /**
     * 公司信息id
     */
    private Integer infoid;

    /**
     * 公司名字
     */
    private String companyname;

    /**
     * 公司主页网站
     */
    private String com;

    /**
     * 公司城市
     */
    private String city;

    /**
     * 公司行业
     */
    private String industry;

    /**
     * 联系人
     */
    private String contact;

    /**
     * 性别
     */
    private String sex;

    /**
     * 移动电话
     */
    private String phone;

    /**
     * 公司logo
     */
    private String logo;

    /**
     * 备用
     */
    private String b1;

    /**
     * 备用
     */
    private String b2;

    /**
     * 公司介绍
     */
    private String companyintroduction;

    private static final long serialVersionUID = 1L;

    public Integer getInfoId() {
        return infoid;
    }

    public void setInfoId(Integer infoid) {
        this.infoid = infoid;
    }

    public String getCompanyName() {
        return companyname;
    }

    public void setCompanyName(String companyname) {
        this.companyname = companyname;
    }

    public String getCom() {
        return com;
    }

    public void setCom(String com) {
        this.com = com;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getIndustry() {
        return industry;
    }

    public void setIndustry(String industry) {
        this.industry = industry;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getB1() {
        return b1;
    }

    public void setB1(String b1) {
        this.b1 = b1;
    }

    public String getB2() {
        return b2;
    }

    public void setB2(String b2) {
        this.b2 = b2;
    }

    public String getCompanyIntroduction() {
        return companyintroduction;
    }

    public void setCompanyIntroduction(String companyIntroduction) {
        this.companyintroduction = companyIntroduction;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CompanyInfo other = (CompanyInfo) that;
        return (this.getInfoId() == null ? other.getInfoId() == null : this.getInfoId().equals(other.getInfoId()))
            && (this.getCompanyName() == null ? other.getCompanyName() == null : this.getCompanyName().equals(other.getCompanyName()))
            && (this.getCom() == null ? other.getCom() == null : this.getCom().equals(other.getCom()))
            && (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
            && (this.getIndustry() == null ? other.getIndustry() == null : this.getIndustry().equals(other.getIndustry()))
            && (this.getContact() == null ? other.getContact() == null : this.getContact().equals(other.getContact()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getLogo() == null ? other.getLogo() == null : this.getLogo().equals(other.getLogo()))
            && (this.getB1() == null ? other.getB1() == null : this.getB1().equals(other.getB1()))
            && (this.getB2() == null ? other.getB2() == null : this.getB2().equals(other.getB2()))
            && (this.getCompanyIntroduction() == null ? other.getCompanyIntroduction() == null : this.getCompanyIntroduction().equals(other.getCompanyIntroduction()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getInfoId() == null) ? 0 : getInfoId().hashCode());
        result = prime * result + ((getCompanyName() == null) ? 0 : getCompanyName().hashCode());
        result = prime * result + ((getCom() == null) ? 0 : getCom().hashCode());
        result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
        result = prime * result + ((getIndustry() == null) ? 0 : getIndustry().hashCode());
        result = prime * result + ((getContact() == null) ? 0 : getContact().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getLogo() == null) ? 0 : getLogo().hashCode());
        result = prime * result + ((getB1() == null) ? 0 : getB1().hashCode());
        result = prime * result + ((getB2() == null) ? 0 : getB2().hashCode());
        result = prime * result + ((getCompanyIntroduction() == null) ? 0 : getCompanyIntroduction().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", infoid=").append(infoid);
        sb.append(", companyname=").append(companyname);
        sb.append(", com=").append(com);
        sb.append(", city=").append(city);
        sb.append(", industry=").append(industry);
        sb.append(", contact=").append(contact);
        sb.append(", sex=").append(sex);
        sb.append(", phone=").append(phone);
        sb.append(", logo=").append(logo);
        sb.append(", b1=").append(b1);
        sb.append(", b2=").append(b2);
        sb.append(", companyintroduction=").append(companyintroduction);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

	public CompanyInfo() {
		super();
	}

	public CompanyInfo(Integer infoid) {
		super();
		this.infoid = infoid;
	}

	public CompanyInfo(Integer infoid, String companyname, String com, String city, String industry, String contact,
			String sex, String phone, String companyintroduction) {
		super();
		this.infoid = infoid;
		this.companyname = companyname;
		this.com = com;
		this.city = city;
		this.industry = industry;
		this.contact = contact;
		this.sex = sex;
		this.phone = phone;
		this.companyintroduction = companyintroduction;
	}
    
}